package org.hgvc.webapp.ets.jsf.beans.finance;

import java.io.Serializable;

import org.hgvc.webapp.ets.bo.CreditNote;
import org.hgvc.webapp.ets.bo.Invoice;


public class CreditNoteInfoBean implements Serializable {

	private CreditNote creditNote;
	private String invoiceNo;
	private Double invAmt;
	private Invoice invoice;
	private boolean selected = Boolean.FALSE;

	public CreditNote getCreditNote() {
		return creditNote;
	}

	public void setCreditNote(CreditNote creditNote) {
		this.creditNote = creditNote;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	public String getInvoiceNo() {
		invoiceNo = creditNote.getInvoiceDtl().getInvoice().getInvoiceNo();
		return invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}

	public Double getInvAmt() {
		invAmt = creditNote.getInvoiceDtl().getItemAmount();
		return invAmt;
	}

	public void setInvAmt(Double invAmt) {
		this.invAmt = invAmt;
	}

	public Invoice getInvoice() {
		invoice = creditNote.getInvoiceDtl().getInvoice();
		return invoice;
	}

	public void setInvoice(Invoice invoice) {
		this.invoice = invoice;
	}

}
